package runnerworm.core;

/**
 * <p>Title: OptionsAvailableEvent</p>
 * <p>Description: This will inform the frame what game options are available.</p>
 * @author Guilherme Mauro Germoglio Barbosa
 */

public class OptionsAvailableEvent
    extends AvailableEvent {

  /**
   * The game options available.
   */
  private GameOptions gameOptions;

  /**
   * Will get the current GameOptions and hold it until something asks for
   * information.
   * @param source The event's source.
   * @param gameOptions The current game's options.
   */
  public OptionsAvailableEvent(AvailableEventLauncher source, GameOptions gameOptions) {
    super(source, OPTIONS_AVAILABLE);
    this.gameOptions = gameOptions;
  }

  /**
   * Gets the game Options.
   * @return The game Options.
   */
  public GameOptions getGameOptions() {
    return gameOptions;
  }

}